import request from '@/utils/request'

function getToken() {
  return localStorage.getItem('business-token')
}
// 查询黑名单
export async function queryBlackList(data) {
  return request('/hzsx/blackList/queryBlackList', {
    method: 'POST',
    data,
    headers: { token: getToken() }
  })
}
// 删除黑名单
export const deleteBlackList = data => {
  return request(`/hzsx/blackList/deleteBlackList`, {
    method: 'POST',
    data,
    headers: {
      token: getToken()
    }
  })
}
